package zunyi01;

import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;


public class HelloJava {
    public static void main(String[] args) {
        String s1 = "hello";
        String s2 = "hello";
        String s3 = "he"+"llo";
        String s4 = new String("hello");
        String s5 = new String("hello");
        char c[] = {'h', 'e', 'l', 'l', 'o'};
        System.out.println(s1==s2);//true
        System.out.println(s1==s3);//true
        System.out.println(s1==s4);//false
        System.out.println(s1.equals(s4));//true
        System.out.println(s4==s5);//false
        System.out.println(s1.equals(c));//false


    }
    }






      



